Auto merge of #2335 - fpgaminer:config-target, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 5 Feb 2016 18:32:07 +0000 (18:32 +0000)
committerbors <bors@rust-lang.org>
Fri, 5 Feb 2016 18:32:07 +0000 (18:32 +0000)
commita1c3ab367632d0a3f1178b4c09d80262755c004e
tree14d51aa9faaca8af10041107eba82b7bcb08210c
parentd282348c918d6687b5aba54c59deb1c79cfea736
parent744205065cfe06f35e299ebecb4f710ad0bc8534
Auto merge of #2335 - fpgaminer:config-target, r=alexcrichton

Fixed #2332.

This PR adds `build.target` to the Cargo config file, which behaves in the same way as passing `--target` to Cargo.  Example `.cargo/config`:

```
[build]
target = "thumbv6m-none-eabi"
```

Similar to how `--jobs` overrides `build.jobs`, `--target` will override `build.target`.

I added documentation to `config.md`, and a test to `test_cargo_cross_compile.rs`.  I couldn't get cross compile working on my machine for `cargo test`.  Hopefully travis passes it.

This is my first PR against Cargo; sorry if I missed any procedures.